package org.example.web.controller;

import org.example.domain.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

//用户服务
@RestController
public class UserController {

    @GetMapping(value = "/user/{id}")
    public User getUserById(@PathVariable("id") Long id){
        return new User(id,"zs:"+id,"wo shi zs : port=1200");
    }
}
